package com.smedi.ismedi.notification.core.infrastructure.constant;

import com.smedi.ismedi.web.starter.exception.BasicError;
import com.smedi.ismedi.web.starter.exception.ErrorItem;

/**
 * 错误消息提示
 */
public class CustomError extends BasicError {
    public static final ErrorItem MESSAGE_CONTENT_LENGTH_ERROR = new ErrorItem(1, "短信模板内容过长！");

    public static final ErrorItem TEMPLATE_PARAMETER_ERROR = new ErrorItem(2, "{1}、{2}为可自定义的内容，须从1开始连续编号，如{1}、{2}等");

    public static final ErrorItem TEMPLATE_NOT_FOUND = new ErrorItem(3, "短信模板不存在！");

    public static final ErrorItem SMS_TEMPLATE_ID_MISS = new ErrorItem(4, "短信id缺失！");

    public static final ErrorItem INVALID_TEMPLATE = new ErrorItem(5, "无效的短信模板！");

    public static final ErrorItem RECEIVERS_EMPTY = new ErrorItem(6, "接收人缺失！");

    public static final ErrorItem PARAMETERS_NOT_FIX_TEMPLATE = new ErrorItem(7, "参数个数与模板不匹配！");

    public static final ErrorItem TENCENT_TEMPLATE_ID_NOT_BOUND = new ErrorItem(8, "未绑定腾讯模板id");

    public static final ErrorItem INVALID_STATUS = new ErrorItem(9, "无效的状态！");

    public static final ErrorItem MAIL_TEMPLATE_NOT_FOUND = new ErrorItem(10, "邮件模板不存在！");

    public static final ErrorItem MAIL_TEMPLATE_ID_MISS = new ErrorItem(11, "邮件id缺失！");
}
